//
//  HSPImageAppreciate.m
//  Icar
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "HSPImageAppreciate.h"

@implementation HSPImageAppreciate
#pragma mark - 编码存储

- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.cover forKey:@"cover"];
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.photoCount forKey:@"photoCount"];
    [aCoder encodeObject:self.desc forKey:@"desc"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.content forKey:@"content"];
    [aCoder encodeObject:self.floor forKey:@"floor"];
    [aCoder encodeObject:self.time forKey:@"time"];
    
}

#pragma mark - 解码读取

- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        self.cover = [aDecoder decodeObjectForKey:@"cover"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.photoCount = [aDecoder decodeObjectForKey:@"photoCount"];
        self.desc = [aDecoder decodeObjectForKey:@"desc"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.content = [aDecoder decodeObjectForKey:@"content"];
        self.floor = [aDecoder decodeObjectForKey:@"floor"];
        self.time = [aDecoder decodeObjectForKey:@"time"];
   
    }
    return self;
}
@end
